﻿@model  DLM.Web.ViewModel.PartyDetailPageView
<div id="divPartyAlbum" class="a6">
    @if (Request.IsAuthenticated && (Model.IsAttend || Model.IsLead) && Model.PartyDTO.Status == (int)DLM.Domain.Model.PartyStatus.Closed)
    {
        <div class="upload_photo_box">
            <input name="uploadFile" type="file" class="file" /><input type="submit" class="btn"
                value="上传照片" />
            (最多允许上传八张jpg格式的照片，大小不超过4MB)
        </div>
    }
    <div class="party_album">
        @if (Model != null)
        {
            foreach (var item in Model.Album.OrderByDescending(c => c.CreateDate))
            {
            <a onclick="showPhoto(this);" href="@Url.Content("~/Files/Party/" + item.PartyID + "/Album/" + item.PhotoName)" >
                <img alt="活动相册" src="@Url.Content("~/Files/Party/" + item.PartyID + "/Album/Thumb/" + item.PhotoName)"  /></a>
            }
        }
    </div>
</div>
